package com.ls.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ls.controller.linkman.model.AddLinkmanModel;
import com.ls.controller.linkman.model.BatchSetLabelOrTeamModel;
import com.ls.controller.linkman.model.EditLinkmanModel;
import com.ls.controller.linkman.model.QueryLinkmanModel;
import com.ls.entity.Linkman;
import com.ls.utils.ResultData;

import java.io.File;
import java.util.List;

/**
 * <p>
 * 联系人表，与customer关联 服务类
 * </p>
 *
 * @author pengyu
 * @since 2024-11-20
 */
public interface ILinkmanService extends IService<Linkman> {
    ResultData pageList(QueryLinkmanModel model);
    /**联系人数量*/
    ResultData getLinkmanCount(QueryLinkmanModel model);

    ResultData getLinkmanById(Long linkmanId);

    ResultData add(AddLinkmanModel model);

    ResultData edit(EditLinkmanModel model);

    ResultData del(Long linkmanId);

    ResultData batchSetLabelOrTeam(BatchSetLabelOrTeamModel model);

    ResultData batchDel(List<Long> linkmanIds);

    /**
     * excel导入联系人
     */
    ResultData importExcel(File file);

    /**
     * 导入联系人数组
     */
    ResultData importArray(List<AddLinkmanModel> linkmanArray);

    /**
     * 判断联系人是否保存
     */
    ResultData isSaved(List<String> phoneLists);

    public ResultData getAllLinkman();

    /**
     * 查询组织架构
     */
    ResultData getOrganizationStructure(QueryLinkmanModel model);
}
